package com.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bean.PurchaseOrderMaterial;
import com.mapper.PurchaseOrderMaterialMapper;
import com.service.PurchaseOrderMaterialService;

/**
 * @author  author : 张鹏
 * @date createTime：2018年1月25日 下午7:10:23 
 * @Description: 该类的功能描述
 */
@Service
public class PurchaseOrderMaterialServiceImpl implements PurchaseOrderMaterialService{
	@Resource
	private PurchaseOrderMaterialMapper orderMaterialMapper;
	
	@Override
	public int insert(PurchaseOrderMaterial p) {
		// TODO Auto-generated method stub
		return orderMaterialMapper.insert(p);
	}

	@Override
	public List<PurchaseOrderMaterial> selectByPurchaseOrderId(int purchaseOrderId) {
		// TODO Auto-generated method stub
		return orderMaterialMapper.selectByPurchaseOrderId(purchaseOrderId);
	}

}
